/*
 * ServerTask.h
 *
 *  Created on: 03.12.2012
 *      Author: zheka
 */

#ifndef SERVERTASK_H_
#define SERVERTASK_H_

#include "Task.hpp"
#include "Server.hpp"
#include "io/TaskThreadPool.hpp"
class ServerTask: public Task {
public:
	ServerTask(Server & server, TaskThreadPool * pool);
	virtual void onInit(Context & context);
	virtual void onRead(Context & context);
private:
	Server & server;
	TaskThreadPool * pool;
};

#endif /* SERVERTASK_H_ */
